import { PartialType } from '@nestjs/mapped-types';
import { CreateQuestionDto } from './create-question.dto';
import { ApiPropertyOptional } from '@nestjs/swagger';

export class UpdateQuestionDto extends PartialType(CreateQuestionDto) {
    @ApiPropertyOptional({
        description: '题目内容',
        example: '这个世界上最高的山是哪座？',
    })
    question?: string;

    @ApiPropertyOptional({
        description: '选项1',
        example: '珠穆朗玛峰',
    })
    option1?: string;

    @ApiPropertyOptional({
        description: '选项2',
        example: '乔戈里峰',
    })
    option2?: string;

    @ApiPropertyOptional({
        description: '选项3',
        example: '干城章嘉峰',
    })
    option3?: string;

    @ApiPropertyOptional({
        description: '选项4',
        example: '洛子峰',
    })
    option4?: string;

    @ApiPropertyOptional({
        description: '正确答案',
        example: '珠穆朗玛峰',
    })
    correctAnswer?: string;
}
